export type PermissionItemType = {
  id: string
  path: string
  permissionName: string
  permissionCode: string
  sort: number
  type: 'menu' | 'button'
  children: PermissionItemType[]
}

export type QueryPermissionPayloadType = {}

export type CreatePermissionPayloadType = Omit<PermissionItemType, 'id' | 'children'>

export type UpdatePermissionPayloadType = Omit<PermissionItemType, 'children'> & {
  parentId?: string
}
